﻿@model Ornament.MemberShip.UserGroup
@{
    ViewBag.Title = "分配角色:" + this.Model.Name;
    Layout = "~/Views/Shared/App.cshtml";

    Html.BeginForm();
    <div>
        <button type="submit" id="submit">
            @Resources.Basic.Save</button>
        <button type="button" id="cancel">
            @Resources.Basic.Cancel</button>
    </div>
    <input id="Id" name="Id" value="@this.Model.Id"  type="hidden"/>;
                                                                    Html.RenderPartial("../Role/RoleAssign", this.Model.GetAllRoles());
                                                                    Html.EndForm();
}
@section Header{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#cancel").button().click(function () { location = '@Url.Action("Index")'; });
            $("#submit").button().click(function () {

            });
        });
    </script>
}
@section PageTitle{
    @Resources.MemberShip.AssignRoles:@this.Model.Name
}
